import axios from './axios'


// 请求天气接口
export const get_Weather = (params) => {
    return axios({
        method: 'get',
        url: 'http://v1.yiketianqi.com/api',
        params: params
    })
}

// 学生发布接口
export const get_Student = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/intelligentDetection/data'
    })
}

// 水电量接口
export const get_Elewater = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/intelligentDetection/dataTop'
    })
}

// 校园人员流动情况
export const get_Schoolflow = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/intelligentDetection/dataBottom'
    })
}

// 近三年来毕业人员去向
export const get_BiyeFlow = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/student/stats/byAreaCode'
    })
}

// 毕业生工作状态
export const get_BiyeWork = (params) => {
    return axios({
        method: 'get',
        url: 'http://localhost:3002/v1.0/api/student/stats/status',
        params: params
    })
}
// 毕业生城市流动
export const get_studentFlow = () => {
    return axios({
        method: 'get',
        url: 'http://localhost:3002/v1.0/api/student/stats/distribution',
        params: {
            gradYear: '2023'
        }
    })
}

// 获取地图数据
export const get_MapData = (adcode) => {
    return axios({
        method: 'get',
        url: `https://geo.datav.aliyun.com/areas_v3/bound/${adcode}_full.json`
    })
}

// 毕业生就业薪资分布
export const get_JiuyeXinzi = (params) => {
    return axios({
        method: 'get',
        url: 'http://localhost:3002/v1.0/api/student/stats/salary',
        params:params
    })
}

// 监控情况
export const get_Jiankong=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/safeManage/monitoringSituation'
    })
}

export const get_Menjin=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/safeManage/dutySituation'
    })
}

// 值班情况
export const get_Zhiban=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/safeManage/entranceGuardSituation'
    })
}

// 监控画像
export const get_JkHuaxiang=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/safeManage/monitoringList'
    })
}

// 设备统计
export const get_SheBeitotal=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/equipment'
    })
}

// 实时用电
export const get_ShiYEle=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/electricityConsumption'
    })
}

// 场地使用
export const get_venueUse=()=>{
     return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/venueUse'
    })
}

// 设备检测
export const get_equipmentTesting=()=>{
     return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/equipmentTesting'
    })
}

// 实施警报
export const get_allPoliceData=()=>{
     return axios({
        url:'http://localhost:3002/v1.0/api/deviceWorking/allPoliceData'
    })
}
